<template>
  <div class="sub-form">
    <div class="sub-form-title" v-show="title">{{title}}</div>
    <div class="sub-form-box">
      <!-- <div class="sub-form-item" v-for="(item,idx) in formDatas" :key="idx">
        <div class="sub-form-item-label">{{item.dictLabel}}</div>
        <el-input :clearable='true' style="margin:7px;width:90%" v-model="item.props"></el-input>
      </div> -->
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  data(){
    return {

    }
  },
  props:{
    title:{
      default:'',
      typeof:String
    },
    
  },
  
}
</script>

<style lang="less" scoped>
.sub-form{
  border: 1px solid #D8D8D8;
  font-size: 14px;
}
.sub-form-title{
  background: #FAFAFA;
  font-weight: 400;
  font-size: 14px;
  color: #282828;
  line-height: 20px;
  text-align: center;
  width: 100%;
  padding: 9px 0px;
  border-bottom: 1px solid #D8D8D8;
}
.sub-form-box{
  display: flex;

}

</style>